package com.jf.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2025-02-27
 * Time:20:15
 */
@RequestMapping("/control")
@RestController
public class FlowController {
    @GetMapping("/normal")
    public String normal() {
        return "normal";
    }
    @GetMapping("/qps")
    public String qps() {
        return "qps";
    }
    @GetMapping("/thread")
    public String thread() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "thread";
    }
    @GetMapping("/related")
    public String related() {
        return "related";
    }
    @GetMapping("relating")
    public String relating() {
        return "relating";
    }
    @GetMapping("/qps/warmup")
    public String qpsWarmup() {
        return "qpsWarmup";
    }
    @GetMapping("/qps/queue")
    public String qpsQueue() {
        return "qpsQueue";
    }
}
